var msy = angular.module('Msy', [
	'ui.router',
	'truncate',
	'ui.bootstrap',
]);


msy.config(function($stateProvider, $urlRouterProvider,$locationProvider){
	$locationProvider.html5Mode(false).hashPrefix('!');
	$urlRouterProvider.otherwise('/home');
	
    $stateProvider
	.state('home', {
		url: "/home",
		templateUrl: "page/main.html"
	})
	.state('home.detailproduct', {
		url: "/detailproduct/:idproduct",
		views: {
			"main": {
				templateUrl: "page/detail-product.html",
			}
		}
	})
})




